home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Xconq 7.0d37
/
source
/
lib
/
tank.g
< prev
next >
Wrap
Text File
|
1993-03-30
|
769b
|
40 lines
(game-module "tank"
(blurb "Simple tank battles")
(variants
(see-all false)
(world-seen false)
(world-size)
)
)
(terrain-type plains (color "green") (char "+"))
(terrain-type hills (color "brown") (char "^"))
(unit-type tank (image-name "tank") (char "T")
(start-with 1)
(acp-per-turn 2)
(hp-max 10)
)
(table hit-chance
(tank tank 100)
)
(table damage
(tank tank 1d4)
)
(add tank vision-range 6)
(add t* occurrence (50 1))
;(set synthesis-methods (remove make-fractal-percentile-terrain synthesis-methods))
;(set synthesis-methods (append make-random-terrain synthesis-methods))
;(set synthesis-methods '(make-random-terrain make-countries))
;(print synthesis-methods)
;;; Don't want the world to wrap around.
(world 10000)